package cn.zero.security.validate.core.image;

import java.awt.image.BufferedImage;
import java.time.LocalDateTime;

import cn.zero.security.validate.core.ValidateCode;

public class ImageCode extends ValidateCode {

	private static final long serialVersionUID = 5714744228559224065L;
	
	private BufferedImage image;

	public ImageCode(BufferedImage image, String code, int expireIn) {
		super(code, expireIn);
		this.image = image;
	}

	public ImageCode(BufferedImage image, String code, LocalDateTime expireTime) {
		super(code, expireTime);
		this.image = image;
	}

	public BufferedImage getImage() {
		return image;
	}

	public void setImage(BufferedImage image) {
		this.image = image;
	}

}
